import { trueeOpen } from '@/utils/functions'
export default {
    namespaced: true,
    state: () => ({
        isFullScreen: false,
        powerList: [],
        linePowerList: [] , //平铺的权限列表
    }),
    mutations: {
        SET_FULL_SCREEN_STATUS(state, status) {
            state.isFullScreen = status
        },
        SET_POWER_LIST(state, powerList) {
            state.powerList = powerList
            state.linePowerList = trueeOpen(powerList)
            // console.log(state.linePowerList);
            localStorage.powerList = JSON.stringify(powerList)
        },
        CLEAR_POWER_LIST(state) {
            state.powerList = []
            localStorage.powerList = ''
        },

    }
}
